{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">{%$class_data.class_name%}往期课程表</p>
                </div>
                    <div class="box-body">
                         <!--搜索开始-->
                        <div class="col-sm-3 form-group">
							  <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   学期：
							  </label>
							  <div class="input-group col-md-8 col-sm-12 col-xs-12">
							   <select class="form-control" name="semester_id">
									{%foreach from=$semester_lists key=key item=value%}
                                   <option value="{%$value.semester_id%}" {%if $semester_id==$value.semester_id%}selected{%/if%}>{%$value.semester_xname%}{%$value.semester_name%}</option>
								   {%/foreach%}

                               </select>
							  </div> 
				        </div>
                        <div class="col-sm-3 form-group">
							  <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   启用日期：
							  </label>
							  <div class="input-group col-md-8 col-sm-12 col-xs-12">
								    <select class="form-control" name="box_id">
                                            <option value="0"> 请选择</option>
									{%foreach from=$start_lists key=key item=value%}
                                            <option value="{%$value%}" {%if $value==$box_id%}selected{%/if%}> {%$key%}</option>
									{%/foreach%}
                                    </select> 
							  </div> 
				        </div>
                        <div class="col-sm-3 form-group">
							  <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								   单双周：
							  </label>
							  <div class="input-group col-md-8 col-sm-12 col-xs-12">
								    <select class="form-control" name="syllabus_double">
                                            <option value="1" {%if $syllabus_double=='1'%}selected{%/if%}> 单周</option>
                                            <option value="2" {%if $syllabus_double=='2'%}selected{%/if%}> 双周</option>
                                    </select> 
							  </div> 
				        </div>
						<input type="hidden" name="a" value="syllabus.infolist">
						<input type="hidden" name="class_id" value="{%$class_id%}">
                        <button type="submit" class="btn btn-primary">搜 索</button>
						</form>
                        <!--搜索结束-->
                        <table class="table table-bordered table-striped text-center" id="mytable">					 
								  <tr style="background-color:#5fb2dc;">
									 <td>节次</td>
									 {%foreach from=$week_lists key=key item=value%}
									 <td>{%$value%}</td>
									 {%/foreach%}
								  </tr>
								  {%foreach from=$out_am key=key item=value%}
								  <tr>
										 <td>{%$key%}</td>
										 {%foreach from=$value key=k item=v%}
										 <td>
											 {%$v.subject_name%}<br/>{%$v.staff_name%}
										 </td>
										 {%/foreach%}
								 </tr>
								 {%/foreach%}

								  <tr>
								        <td></td>
								  </tr>
								  {%foreach from=$out_pm key=key item=value%}
								  <tr>
										 <td>{%$key%}</td>
										 {%foreach from=$value key=k item=v%}
										 <td>
											 {%$v.subject_name%}<br/>{%$v.staff_name%}
										 </td>
										 {%/foreach%}
								 </tr>
								 {%/foreach%}
                         </table>  
				    </div><!--box-body -->
             </div><!--box box-default box-solid-->

        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 {%include file="index.footer.tpl.php"%}
